/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Creational.Prototype;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Juan
 */
public class Maininvocacion {
    public static void  main(String[]args){
    ComputadorPrototype nuevoDesktop= new ComputadorPrototype();
        try {
            Computador com=(Computador) nuevoDesktop.prototipo("Escritorio");
            System.out.print("El Consumo por defecto de mi prototipo es : "+com.getConsumo());
        } catch (CloneNotSupportedException ex) {
            Logger.getLogger(Maininvocacion.class.getName()).log(Level.SEVERE, null, ex);
        }
    
    
    }
}
